#include "intersection.h"

namespace rt
{

Intersection::Intersection()
{
    valid = false;
    dist = 0;
}

Intersection::Intersection(double d,bool v)
{
    valid =v;
    dist = d;
}

void Intersection::setValid(bool v)
{
    valid = v;
}

void Intersection::setDistance(double d)
{
    dist = d;
}

bool Intersection::getValid()
{
    return valid;
}

double Intersection::getDistance()
{
    return dist;
}

}
